package com.metro.demo.web.controller.imp;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * Created by xk on 2017/8/29 0029.
 */
@Data()
@EqualsAndHashCode(callSuper = false)
public class ImportResult<T> {
    //成功数
    private int successNum;
    //失败数
    private int failNum;
    //总数
    private int totalNum;
    //失败文件地址
    private String failFilePath;

    public boolean isSuccess(){
        return successNum == totalNum;
    }
}
